package com.gzz.orchid.main.facade.controller.pojo;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class RegisterRequest {
    @NotBlank(message = "{username.not.blank}")
    @Length(min = 2, max = 20, message = "{username.length.limit}")
    private String username;
    @NotBlank(message = "{password.not.blank}")
    private String password;
}
